package mediatorPattern;

/**
 * 抽象同时类，定义中介对象，和同事类基本属性。使同事类和中介类进行联系
 */
public abstract class Person {

    protected Mediator mediator;

    protected String name;

    // 一个同事类，需要包含中介类
    public Person(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
    }
}
